/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.team1662.subsystems;

import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Talon;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.team1662.RobotMap;
import edu.wpi.first.wpilibj.team1662.commands.Drive;

/**
 *
 * @author programmer
 */
public class Drivetrain extends Subsystem{
    
    private Talon leftMotor = new Talon(RobotMap.leftMotor);
    private Talon rightMotor = new Talon(RobotMap.rightMotor);
    private RobotDrive robot = new RobotDrive(leftMotor, rightMotor);
    private Victor cheezit = new Victor(RobotMap.conveyorMotor);
    
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
        setDefaultCommand(new Drive());
    }
    
    public void tankDrive(double left, double right){
        robot.tankDrive(left, right);
    }
    public void cheezit(double donut){
        cheezit.set(donut);
    }
    public double getChMotor(){
        return cheezit.getSpeed();
    }
    
    
    
    
}
